<script>
	import { initMainDbAndOpenAllDb } from '@/uni_modules/stars-UniTS-SQLite-ORM/components/stars-UniTS-SQLite-ORM/app/application.ts';
	import {DB_NAME} from '@/uni_modules/stars-UniTS-SQLite-ORM/components/stars-UniTS-SQLite-ORM/dbOrm/config/dbconfig';
	export default {
		onLaunch: function() {
			console.log('App Launch')
      // 强制横屏
			plus.screen.lockOrientation("landscape")
		},
		onShow: function() {
			console.log('App Show')
		},
		onHide: function() {
			console.log('App Hide')
		},
		created() {
			// 初始化主数据库，并打开所有数据库
			initMainDbAndOpenAllDb(DB_NAME)
		},
	}
</script>

<style>
	/*每个页面公共css */
	@import "static/styles/common.css";
</style>
